package org.hashdb.client.console.completer;

import java.util.List;

/**
 * Date: 2024/1/11 22:12
 *
 * @author huanyuMake-pecdle
 * @version 0.0.1
 */
public enum Option {
    exists(List.of("es")),
    limit(List.of("lm", "lmt")),
    old(List.of("old")),
    /**
     * 使用默认优先级删除
     */
    expire(List.of("ep")),
    /**
     * 高优先级删除
     */
    hexpire(List.of("hep")),
    /**
     * 使用低优先级删除
     */
    lexpire(List.of("lep")),
    pop(List.of("pop")),

    copy(List.of("cp")),

    destruct(List.of("dstc")),
    expire_strategy("expire-strategy", List.of("eps")),
    delete(List.of("del")),
    hdelete(List.of("hdel")),
    ldelete(List.of("ldel")),
    ;
    public final List<String> shortName;

    public final String fullName;

    Option(List<String> shortName) {
        this.shortName = shortName;
        fullName = name();
    }

    Option(String fullName, List<String> shortName) {
        this.shortName = shortName;
        this.fullName = fullName;
    }

}
